package com.typing.battle.activity;

import com.typing.battle.R;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;

public class TypingBattleIntroActivity extends Activity{
	private ProgressBar progress;
	private RelativeLayout layout;
	private Context mContext;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.battle_intro);
		mContext = this;
		progress = (ProgressBar)findViewById(R.id.intro_progress);
		
//		layout = (RelativeLayout)findViewById(R.id.intro_layout);
//		layout.setOnClickListener(new OnClickListener() {
//			
//			@Override
//			public void onClick(View v) {
//				Intent intent = new Intent(mContext,TypingBattleLoginActivity.class);
//				startActivity(intent);
//				finish();
//			}
//		});
		
		
		new Handler().postDelayed(new Runnable() {
			
			@Override
			public void run() {
				Intent intent = new Intent(mContext,TypingBattleLoginActivity.class);
				startActivity(intent);
				finish();				
			}
		}, 2000);
	}		
	
}
